﻿<Window x:Class="MECopter.Configuration.Quadrocopter.QuadroConfigUI"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Options" Height="519" Width="398" Background="#FF2D2D30" Foreground="#FFA6B7B7" ResizeMode="NoResize">
    <TabControl Margin="0,0,0,0">
        <TabItem Header="PID">

            <Grid Margin="10,10,-2,0" VerticalAlignment="Top">
                <Grid.RowDefinitions>
                    <RowDefinition Height="40"/>
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40"/>
                    <RowDefinition Height="40"/>
                    <RowDefinition Height="40"/>
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40" />
                    <RowDefinition Height="40"  />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="70"/>
                    <ColumnDefinition Width="40"/>
                    <ColumnDefinition Width="200"/>
                </Grid.ColumnDefinitions>
                <Label Grid.Column="0" Grid.Row="0" Content="Yaw:"  Margin="10,4,10,10" FontWeight="Bold"/>
                <Label Grid.Column="1" Grid.Row="0" Content="P:"  Margin="10,4,10,10"/>
                <TextBox Grid.Column="2" Grid.Row="0" x:Name="tb_YawP" TextWrapping="Wrap" Text="/Yaw_P/" Margin="10,7,-4,10"/>
                <Label Grid.Column="1" Grid.Row="1" Content="I:"  Margin="10,4,10,10"/>
                <TextBox Grid.Column="2" Grid.Row="1" x:Name="tb_YawD" TextWrapping="Wrap" Text="/Yaw_D/" Margin="10,7,-4,10"/>
                <Label Grid.Column="1" Grid.Row="2" Content="D:"  Margin="10,4,10,10"/>
                <TextBox Grid.Column="2" Grid.Row="2" x:Name="tb_YawI" TextWrapping="Wrap" Text="/Yaw_I/" Margin="10,7,-4,10"/>

                <Label Grid.Column="0" Grid.Row="3" Content="Pitch:"  Margin="10,4,10,10" FontWeight="Bold"/>
                <Label Grid.Column="1" Grid.Row="3" Content="P:"  Margin="10,4,10,10"/>
                <TextBox Grid.Column="2" Grid.Row="3" x:Name="tb_PitchP" TextWrapping="Wrap" Text="/Pitch_P/" Margin="10,7,-4,10"/>
                <Label Grid.Column="1" Grid.Row="4" Content="I:"  Margin="10,4,10,10"/>
                <TextBox Grid.Column="2" Grid.Row="4" x:Name="tb_PitchI" TextWrapping="Wrap" Text="/Pitch_I/" Margin="10,7,-4,10"/>
                <Label Grid.Column="1" Grid.Row="5" Content="D:"  Margin="10,4,10,10"/>
                <TextBox Grid.Column="2" Grid.Row="5" x:Name="tb_PitchD" TextWrapping="Wrap" Text="/Pitch_D/" Margin="10,7,-4,10"/>

                <Label Grid.Column="0" Grid.Row="6" Content="Roll:"  Margin="10,4,10,10" FontWeight="Bold"/>
                <Label Grid.Column="1" Grid.Row="6" Content="P:"  Margin="10,4,10,10"/>
                <TextBox Grid.Column="2" Grid.Row="6" x:Name="tb_RollP" TextWrapping="Wrap" Text="/Roll_P/" Margin="10,7,-4,10"/>
                <Label Grid.Column="1" Grid.Row="7" Content="I:"  Margin="10,4,10,10"/>
                <TextBox Grid.Column="2" Grid.Row="7" x:Name="tb_RollI" TextWrapping="Wrap" Text="/Roll_I/" Margin="10,7,-4,10"/>
                <Label Grid.Column="1" Grid.Row="8" Content="D:"  Margin="10,4,10,10"/>
                <TextBox Grid.Column="2" Grid.Row="8" x:Name="tb_RollD" TextWrapping="Wrap" Text="/Roll_D/" Margin="10,7,-4,10"/>

                <Button x:Name="btLoadPID" Grid.Column="0" Grid.Row="9" Content="Load" Height="25" VerticalAlignment="Top" Click="btLoadPID_Click" Margin="10,4,10,0" />

                <Button x:Name="btSavePID" Grid.Column="1" Grid.Row="9" Content="Save" Height="25" VerticalAlignment="Top" Click="btSavePID_Click"  Margin="10,4,178,0" Grid.ColumnSpan="2"/>
                
            </Grid>

        </TabItem>
        
    </TabControl>




    <!--
    <Grid Margin="10,0,0,8" Height="115" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="272">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>            
            <ColumnDefinition Width="1*"/>            
        </Grid.ColumnDefinitions>
        <Label Grid.Column="0" Grid.Row="0" Content="Port:" HorizontalAlignment="Left" Foreground="#FFC7C7C7" Margin="10,4,0,10" Width="35"/>
        <Label Grid.Column="0" Grid.Row="1" Content="Baudrate:" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="#FFA6B7B7" Height="26" Width="60" Margin="10,2,0,0"/>
        <ComboBox x:Name="cbPort" Grid.Column="2" Grid.Row="0" Height="25"  VerticalAlignment="Top" Margin="10,3,10,0">
            <ComboBoxItem Content="COM1"></ComboBoxItem>
            <ComboBoxItem Content="COM2"></ComboBoxItem>
        </ComboBox>
        <ComboBox x:Name="cbBaudrate" Grid.Column="2" Grid.Row="1" Height="25"  VerticalAlignment="Top" Margin="10,3,10,0">
            <ComboBoxItem Content="9600"></ComboBoxItem>
            <ComboBoxItem Content="14400"></ComboBoxItem>
            <ComboBoxItem Content="19200"></ComboBoxItem>
            <ComboBoxItem Content="38400"></ComboBoxItem>
            <ComboBoxItem Content="57600"></ComboBoxItem>
            <ComboBoxItem Content="115200"></ComboBoxItem>
        </ComboBox>
        <Button x:Name="btLoad" Grid.Column="0" Grid.Row="2" Content="Load" Height="25" VerticalAlignment="Top" Click="btLoad_Click" Margin="0,4,10,0" HorizontalAlignment="Right" Width="114" />

        <Button x:Name="btSave" Grid.Column="1" Grid.Row="2" Content="Save" Height="25" VerticalAlignment="Top" Click="btSave_Click"  Margin="10,4,10,0"/>
  


    </Grid>-->

</Window>
